<?php
/*
 * @Author: 李志刚
 * @CopyRight: 2020-2030 衡水山木枝技术服务有限公司
 * @Date: 2021-06-29 10:25:32
 * @Description: 拼多多配置文件
 * @LastEditors: 李志刚
 * @LastEditTime: 2021-09-25 08:06:45
 * @FilePath: /qingshanERP/config/pdd.php
 */
return [
    // 应用ID
    'client_id' => '846f5febd8e9487c8c3f4ad3eea61d11',
    // 应用秘钥
    'client_secret' => 'adf615bb006e676777baf47aa5bc1a240512c152',
    //用户角色 MERCHANT(商家授权),H5(移动端),多多进宝推手(JINBAO),快团团团长(KTT),拼多多电子面单用户(LOGISTICS)
    'member_type' => 'MERCHANT',
    // 授权成功后的跳转地址
    'redirect_uri' => 'http://qingshanerp.shanmuzhi.com/pddcallback',
    // 官方的接口地址
    'api_url' => 'https://gw-api.pinduoduo.com/api/router',
    // 授权用的跳转地址
    'auth_url' => [
        'MERCHANT' => 'https://fuwu.pinduoduo.com/service-market/auth',
        'H5' => 'https://mai.pinduoduo.com/h5-login.html',
        'JINBAO' => 'https://jinbao.pinduoduo.com/open.html',
        'KTT' => 'https://oauth.pinduoduo.com/authorize/ktt',
        'LOGISTICS' => 'https://wb.pinduoduo.com/logistics/auth',
    ],
    // 电子面单模板
    'template_url' => 'https://file-link.pinduoduo.com/db_one',
    // 售后状态标识
    'after_sales_status' => [
        '0' => '无售后',
        '2' => '买家申请退款，待商家处理',
        '3' => '退货退款，待商家处理',
        '4' => '商家同意退款，退款中',
        '5' => '平台同意退款，退款中',
        '6' => '驳回退款，待买家处理',
        '7' => '已同意退货退款，待用户发货',
        '8' => '平台处理中',
        '9' => '平台拒绝退款，退款关闭',
        '10' => '退款成功',
        '11' => '买家撤销',
        '12' => '买家逾期未处理，退款失败',
        '13' => '买家逾期，超过有效期',
        '14' => '换货补寄待商家处理',
        '15' => '换货补寄待用户处理',
        '16' => '换货补寄成功',
        '17' => '换货补寄失败',
        '18' => '换货补寄待用户确认完成',
        '21' => '待商家同意维修',
        '22' => '待用户确认发货',
        '24' => '维修关闭',
        '25' => '维修成功',
        '27' => '待用户确认收货',
        '31' => '已同意拒收退款，待用户拒收',
        '32' => '补寄待商家发货',
    ]
];